package com.lucy.management.config.auth;

import com.lucy.management.utils.JwtUtil;
import io.jsonwebtoken.Claims;

import javax.servlet.http.HttpServletRequest;

public class AdminLogin {
    public static AdminLoginModel getAdminLoginModel(HttpServletRequest request) {
        AdminLoginModel model = new AdminLoginModel();

       /* Claims claims = JwtUtil.parseJWT(request.getHeader("token"));

        model.setUuid(claims.get("userId")+"");
        model.setSchoolId(claims.get("schoolId")+"");
        model.setSchoolId(claims.get("schoolName")+"");
        model.setUserName(claims.get("userName")+"");
        model.setRealName(claims.get("realName")+"");*/

        model.setUuid("e12438cc-b7f1-407a-a833-ca49da1b652b");
        model.setSchoolId("3fd8590f8d8645348d6ca3f1c6bc2046");
        model.setSchoolName("微信体验学校");
        model.setUserName("testuser");
        model.setRealName("测试用户");

        return model;
    }
}
